<script setup lang="ts">
import VideoItem from './VideoItem.vue'
import userConfigStore from '@renderer/store/userConfigStore'
const { config } = userConfigStore()
</script>

<template>
  <main class="overflow-y-auto h-80">
    <div v-if="config.files.length">
      <VideoItem
        v-for="(video, index) of config.files"
        :key="index"
        :index="index"
        class="video"
        :video="video"
      />
    </div>
    <div v-else class="text-xs opacity-80 text-slate-500 text-center">暂无压缩视频</div>
  </main>
</template>

<style lang="less" scoped></style>
